package cn.tedu.straw.portal.service;

import cn.tedu.straw.portal.dto.PostAnswerDTO;
import cn.tedu.straw.portal.model.Answer;
import cn.tedu.straw.portal.vo.AnswerListItemVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2020-11-11
 */
public interface IAnswerService extends IService<Answer> {

    void post(PostAnswerDTO postAnswerDTO, Integer userId, String userNickName);

    List<AnswerListItemVO> getAnswerList(Integer questionId);

}
